package com.ting.mybatis.config;

import java.util.Map;

/**
 * 把mybatis-config.xml和mapper.xml文件的配置信息的封装成对象
 * */
public class MyConfiguration {

    //封装mybatis-config.xml文件,里面核心就是datasource
    private MyEnvironment myEnvironment;

    //封装mapper.xml文件，核心是命名空间、id、参数、返回类型、sql语句
    //sql语句会有很多条，用Map类型接收
    //key是namespace+"."+id 。value是sql对象
    private Map<String,MyMapperStatement> myMappedStatementMap;

    public MyEnvironment getMyEnvironment() {
        return myEnvironment;
    }

    public void setMyEnvironment(MyEnvironment myEnvironment) {
        this.myEnvironment = myEnvironment;
    }

    public Map<String, MyMapperStatement> getMyMappedStatementMap() {
        return myMappedStatementMap;
    }

    public void setMyMappedStatementMap(Map<String, MyMapperStatement> myMapperStatement) {
        this.myMappedStatementMap = myMapperStatement;
    }


}
